import 'package:flutter/material.dart';

class AnimationPage extends StatelessWidget {
  const AnimationPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animatedList");
            }, child: Text('animatedList')),
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animatedAddGoods");
            }, child: Text('animatedAddGoods')),
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animated");
            }, child: Text('animated')),
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animated1");
            }, child: Text('RotationTransition')),
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animated2");
            }, child: Text('FadeTransition')),
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animated3");
            }, child: Text('ScaleTransition')),
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animated4");
            }, child: Text('SlideTransition')),
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animated5");
            }, child: Text('交错式动画1')),
            ElevatedButton(onPressed: (){
              Navigator.pushNamed(context, "/animated6");
            }, child: Text('自定义交错式动画')),
          ]
        )
      )
    );
  }
}
